package cn.edu.scau.cmi.zenglinghong.simpleFactory;

import cn.edu.scau.cmi.zenglinghong.simpleFactory.domain.*;

public class MeatFactory {
	public static Meat getMeat(String meatType) {
		Meat meat = null;
		switch(meatType) {
		case "beef":
			meat = new Beef(); break;
		case "pork":
			meat = new Pork(); break;
		case "chicken":
			meat = new Chicken(); break;
		default :
			System.out.println("There is no such meat.");
		}
		return meat;
	}
}
